package cn.iocoder.yudao.module.tms.controller.admin.training.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 培训资料创建/修改 Request VO")
@Data
public class TrainingMaterialSaveReqVO {

    @Schema(description = "编号", example = "25623")
    private Long id;

    @Schema(description = "资料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "培训资料1")
    @NotBlank(message = "资料名称不能为空")
    private String name;

    @Schema(description = "资料类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "pdf")
    @NotBlank(message = "资料类型不能为空")
    private String type;

    @Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED, example = "/training/xxx.pdf")
    @NotBlank(message = "文件路径不能为空")
    private String filePath;

    @Schema(description = "文件大小", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "文件大小不能为空")
    private Integer fileSize;

    @Schema(description = "上传人", example = "张三")
    private String uploader;

    @Schema(description = "备注", example = "这是培训资料")
    private String remark;

}